package com.esd.device.controller;

import com.esd.device.utils.EsdConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@Slf4j
@RestController
@RequestMapping("channelType")
public class ChannelTypeController {
    @Autowired
    private EsdConfig esdConfig ;

    @GetMapping("getChannelTypes")
    public List<String> getChannelTypes() throws IOException {
        return esdConfig.getChannelTypes();
    }

}
